<script setup lang="ts">
/*运行时类型声明
defineEmits(["click","change"])*/

/* 基于类型声明 */
interface Emits {
  (eventName: "change", data: number): void
  (eventName: "getAge", age: string): void
}
defineEmits<Emits>()
</script>

<template>
  <div>

  </div>
</template>

